




std::string toXML() {
	std::string buf;
	buf.append("<").append(elementName).append(" xmlns=\"").append(nameSpace).append("\">");
	for(std::map<std::string, std::string>::iterator it = _map.begin();
			it != _map.end(); it ++) {
		buf.append("<").append(it->first).append(">");
		buf.append(it->second);
		buf.append("</").append(it->first).append(">");
	}

	buf.append("</").append(elementName).append(">");
	return buf;
}


std::vector<std::string> getNames() {
	std::vector<std::string> v;
	for(std::map<std::string, std::string>::iterator it = _map.begin();
			it != _map.end(); it ++) {
		v.push_back(it->first);
	}
	return v;
}


std::string getValue(std::string & name) {
	return _map[name];
}


void setValue(std::string & name, std::string & value) {
	_map[name] = value;
}
